#include <stdio.h>
#include <stdlib.h>
#include "sds.h"

static void simpledemo(){
	sds s = sdsnew("our world, and our think.");
	printf("sds s is: %s\n", s);
	sdsfree(s);

	sds empty = sdsempty();
	printf("empty sds is: %s\n", empty);
	sdsfree(empty);
}

static void sdslendemo(){
	sds fivestr = sdsnew("abcde");
	printf("fivestr's len: %zu\n", sdslen(fivestr));
	sdsfree(fivestr);

	sds empty = sdsempty();
	printf("empty's len: %zu\n", sdslen(empty));
	sdsfree(empty);
}

int main(){
	printf("The following are sds's demos\"\n");
	simpledemo();
	sdslendemo();
	printf("demos end\n");
}
